import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

public class h_7 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.print("输入第一个字符串：");
        String str1=sc.nextLine();
        System.out.print("输入第二个字符串：");
        String str2=sc.nextLine();
        char[] ch1=str1.toCharArray();
        char[] ch2=str2.toCharArray();
        Map<Character,Integer> map1= new HashMap();
        Map<Character,Integer> map2=new HashMap<>();
        for (char c:ch1
             ) {
            if(!map1.containsKey(c)){
                map1.put(c,1);
            }else {
                int value=map1.get(c);
                map1.put(c,++value);
            }
        }
        for (char c:ch2
        ) {
            if(!map2.containsKey(c)){
                map2.put(c,1);
            }else {
                int value=map2.get(c);
                map2.put(c,++value);
            }
        }
        int flag=1;
        Boolean istrue=false;
        Set<Map.Entry<Character, Integer>> entrySet = map2.entrySet();
        for (Map.Entry<Character, Integer> entry:entrySet
             ) {
            if(map1.containsKey(entry.getKey())){
                istrue=true;
                if( map1.get(entry.getKey())<=entry.getValue()){
                    flag=0;
                    break;
                }
            }
        }
        if(flag==1 && istrue){
            System.out.println("yes");
        }else {
            System.out.println("no");
        }
    }
}
